<!-- include tpl=head_lay -->
<div class="layui-card">
	<div class="layui-card-header ">
		{lang列表}
		<div class="fr">
			<button class="layui-btn layui-btn-sm" onclick="$.win('{lang添加新调用}','{url ctrl=call func=set/}')">
				<i class="layui-icon">&#xe608;</i> {lang添加调用}
			</button>
		</div>
	</div>

	<div class="layui-card-body">
		<table class="layui-table">
			<thead>
			<tr>
				<th>ID</th>
				<th style="width:30px"></th>
				<th>{lang名称}</th>
				<th>{lang类型}</th>
				<th>{lang参数变量}</th>
				<!-- if $popedom.modify || $popedom.delete -->
				<th width="150">{lang操作}</th>
				<!-- /if -->
			</tr>
			</thead>
			<tbody>
			<!-- loop from=$rslist key=$key value=$value -->
			<tr id="edit_{$value.id}">
				<td>{$value.id}</td>
				<td class="center"><span class="status{$value.status}" id="status_{$value.id}" {if $popedom.modify}onclick="$.admin_call.status({$value.id})"{else} style="cursor:default"{/if} value="{$value.status}"></span></td>
				<td>
					<div>{$value.title}<!-- if $value.is_api --> <i class="red"><small>{lang远程}</small></i><!-- /if --></div>
					<!-- if $value.project -->
					<div class="gray">
						<hr />
						{$value.project}
						<!-- if $value.cate --> / {$value.cate}<!-- /if -->
					</div>
					<!-- /if -->
				</td>
				<td>{$phpok_type_list[$value.type_id][title]}</td>
				<td>
					<span class="layui-badge-rim hand phpok-copy"  title="点击复制" data-clipboard-text="{$value.identifier}">{$value.identifier}</span>
				</td>
				<!-- if $popedom.modify || $popedom.delete -->
				<td>
					<div class="layui-btn-group">
						<!-- if $popedom.modify --><input type="button" value="{lang编辑}" onclick="$.win('{lang编辑调用}','{url ctrl=call func=set id=$value.id/}')" class="layui-btn  layui-btn-xs" /><!-- /if -->
						<!-- if $popedom.delete --><input type="button" value="{lang删除}" onclick="$.admin_call.del('{$value.id}','{$value.title}')" class="layui-btn layui-btn-xs layui-btn-danger" /><!-- /if -->
					</div>
				</td>
				<!-- /if -->
			</tr>
			<!-- /loop -->
			</tbody>
		</table>
		<!-- if $total && $total>$psize --><div class="center"><!-- include tpl=pagelist --></div><!-- /if -->
	</div>
</div>

<!-- include tpl=foot_lay -->
